#include <iostream>
using namespace std;

#include <glad\glad.h>
#include <GLFW\glfw3.h>
#include <glm\glm.hpp>
#include <glm\gtc\matrix_transform.hpp>
#include <glm\gtc\type_ptr.hpp>

#include "render.h"
#include "triangleModel.h"
#include "triangleTexModel.h"
#include "rectangleModel.h"
#include "cubicModel.h"
#include "glmModel.h"
#include "mvpModel.h"
#include "camModel.h"
#include "colorModel.h"
#include "materialModel.h"
#include "lightMaterial.h"

Model* currModel = NULL;

void loadModel()
{
	//currModel = new TriangleModel();
	//currModel = new RectangleModel();
	//currModel = new CubicModel();
	//currModel = new GlmModel();
	//currModel = new TriangleTexModel();
	//currModel = new MvpModel();
	//currModel = new CameraModel();
	//currModel = new ColorModel();
	//currModel = new MaterialModel();
	currModel = new LightMaterialModel();
	currModel->Load();
}

void freeModel()
{
	currModel->Free();
	delete currModel;
	currModel = NULL;
}

void renderModel()
{
	currModel->Render();
}
